# 2023/2/3  11:23
import json

from config import BASE_PATH


def build_data(file_name):
    with open(BASE_PATH+'/data/'+file_name, encoding="utf-8") as fr:
        data = json.load(fr)
        new_list = list()
        for i in data:
            tmp = tuple(i.values())
            new_list.append(tmp)
        return new_list
